package net.bplaced.streetfighter.lib.model;

import com.google.gson.annotations.SerializedName;

/**
 * Business entity for a guestbook comment.
 * 
 * @author Sebastian Hoffmann <bo.hoffi@googlemail.com>
 */
public class Comment {

    /**
     * Database id of the comment.
     */
    public Integer id;

    /**
     * Name of the comments author.
     */
    public String author;

    /**
     * Email address of the comments author.
     */
    public String authorEmail;

    /**
     * URL of the comments author.
     */
    public String authorUrl;

    /**
     * IP address of the comments author.
     */
    public String authorIp;

    /**
     * String containing date and time of the comment. Only for internal use when deserializing from JSON.
     */
    @SerializedName("commentDateTime")
    public String commentDateTimeString;

    /**
     * Content text of the comment.
     */
    public String commentText;

    /**
     * Database id of the comments pareant comment.
     */
    public Integer parentComment;

    /**
     * Collection of the contained child comments.
     */
    public Comment[] childComments;

    public Comment() {

    }
}